<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script>
    var weight = parseFloat(prompt('请输入你的体重'));
    var height = parseFloat(prompt('请输入你的身高'));
    var index = weight - (height - 108) * 2;
    if(index > 10){
      alert('超重');
    }else if(index < -10){
      alert('偏瘦');
    }else{
      alert('正常');
    }
  </script>
</head>
<body>
  
  
</body>
</html>